﻿namespace 依赖注入案例练习;

public class Log:ILog
{
    public void ErrorLog(string content)
    {
        var fOriginalColor = Console.ForegroundColor;
        var bOriginalColor = Console.BackgroundColor;
        Console.ForegroundColor = ConsoleColor.Red;
        Console.WriteLine($"Log_Error:{content}");
        Console.ForegroundColor = fOriginalColor;
        Console.BackgroundColor = bOriginalColor;
    }

    public void MessageLog(string content)
    {
        Console.WriteLine($"Log_Message:{content}");
    }
}